jQuery(document).ready(function () {
    selectList();
    $("#resetBtn").on("click",function () {
        $("#customerName").val("");
        $("#customerId").val("");
        $("#type").val("");
        $("#contact").val("");
        $("#telephone").val("");
        $("#address").val("");
        $("#state").val("");
    });
});
function queryParams(params) {
    return getQueryParams(params, "searchForm");
}
function selectList(){
    $('#customerTable').bootstrapTable("destroy");
    $('#customerTable').bootstrapTable({
        method: "post",
        url: rootPath+"/customerCon/ajax/getCustomerListForReport",
        showExport : true,
        exportTypes: ['excel'],//['json', 'xml', 'csv', 'txt', 'sql', 'excel'],
        Icons:'glyphicon-export',
        exportOptions:{
            ignoreColumn: [0],  //忽略某一列的索引
            fileName: '客户列表',  //文件名称设置
            worksheetName: 'sheet1',  //表格工作区名称
            tableName: '客户列表'
        },
        exportDataType : 'all'
    });
}